class Animal(object):
	def __init__(self,name,age,classname='Animal'):
		self.__classname = classname
		self.name = name
		self.age = age
	def run(self):
		print('{} is running...'.format(self.__classname))

class Dog(Animal):
    def __init__(self,name,age):
        Animal.__init__(self,name,age,classname='Dog')

class Cat(Animal):
    def __init__(self,name,age):
        Animal.__init__(self,name,age,classname='Cat')
#
import types

for x in dir(Animal):
    flag = isinstance(eval('Animal.'+x),types.FunctionType);
    print('是否是方法：{0}，名字为：{1}'.format(flag,x));

